home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
TANIS002.422
< prev
next >
Wrap
Text File
|
1993-03-09
|
3KB
|
60 lines
0Tanis002.Mod. update, this now handles Gated subs
Pull #783 @17310
Sunday, March 7, 1993 7:57 pm
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: : TANIS002.MOD Author : Tanis Half-Elven 1@17315 │
│ Difficulty : Easy Date : 2/26/93 │
│ Files Modded : MSGBASE1.C WWIV Version : 4.22 │
│ Description : A cool message prompt, with sub name and Net the sub is in.│
└────────────────────────────────────────────────────────────────────────────┘
I first got thsi idea from IQ1. He had the main prompt contain the Net Name
the current sub was in. Well i hate the plain old Read promt for the messages
so i whipped this up using part of IQ1's mod. This is a simple mod, moslty
coemstic but hey, aren't all mods?
Anyway, with out further delay, on with the mod.
Step 1: Back up your source, because i am not responsible for anything that
happens to you or your computer.
Step 2: Load Msgbase1.C
Step 3: Search for : void scan(int msgnum, int optype, int *nextsub)
Step 4: Make it look like this. Note : The A's and B's are extra colors.
change them to what you want.
void scan(int msgnum, int optype, int *nextsub)
{
char s[81],s1[81],s2[81],*b,*ss1,*ss2; /* add the *ss2 */
int i,i1,i2,done,quit,abort,next,val,realexpress;
slrec ss;
Then go down a little farther to case 0:
/* Delete the stuff under case 0: */
case 0: /* Read Prompt */ /* up to if (express) {, and add: */
nl();
if (xsubs[usub[cursub].subnum].num_nets) {
if (xsubs[usub[cursub].subnum].num_nets>1)
ss2="Gated";
else
ss2=net_networks[xsubs[usub[cursub].subnum].nets[0].net_num].name;
npr("7[A%s 7: B%s7]0\r\n",ss2,subboards[usub[cursub].subnum].name);
sprintf(s,"7[A%s 7: 11-%u7,1^%u7] :0 ",get_string(678), nummsgs,msgnum);
} else {
npr("7[ALocal 7: B%s7]0\r\n",subboards[usub[cursub].subnum].name);
sprintf(s,"7[A%s 7: 11-%u7,1^%u7] :0 ",get_string(678), nummsgs,msgnum);
}
if (express) { /* stop here */
Step 5: Change the Colors to what you want.
Step 6: Save Msgbase1.C.
That's it! Simple huh? Well remember that good things come in small
packages. If you have any questions, comments or problems with this mod, I
can be reached at 1@17315 or via the WWIVLink Mod Discussion sub. Cya.
7Tanis
5The Half-Elven